﻿using AutoMapper;

namespace D.WebApi.Core.AutoMapperUtils
{
    public class MappingProfile : Profile
    {
        public MappingProfile(Dictionary<Type, Type> dic)
        {
            foreach (var item in dic)
            {
                CreateMap(item.Key, item.Value).ReverseMap();
            }
        }
    }
}
